package com.qidianit.mes.pojo.pro;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.qidianit.mes.pojo.SysDictData;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;


@Data
@TableName("workflow_step")
public class WorkflowProcess {

    @TableId(type = IdType.AUTO)
    private Long id;
    @TableField("workflow_id")
    private Long workflowId;
    @TableField("process_id")
    private Long processId;
    @TableField("step_order")
    private Integer stepOrder;
    @TableField("relation_next")
    private Long relationNext;
    @TableField("gantt_color")
    private String ganttColor;
    @TableField("is_critical")
    private Integer isCritical;
    @TableField("need_inspection")
    private Integer needInspection;
    @TableField("perp_time")
    private Integer prepTime;
    @TableField("wait_time")
    private Integer waitTime;
    private String remarks;
    @TableField("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime createTime;
    @TableField("create_by")
    private String createBy;
    @TableField("update_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime updateTime;
    @TableField("update_by")
    private String updateBy;
    @TableField("delete_flag")
    private Integer deleteFlag;


    private Process process;

    private Process nextProcess;

    private SysDictData relationNextDict;


}
